The Spartans trailed in the game by as many as 10 in the second half, but battled back to tie the game with 31 seconds to play.