John Sutton scored the only goal of the game as Motherwell beat Hearts 1-0 in a lively encounter at Tynecastle.