Fixed the null pointer bug invloving the snake speed.