new changes in the method main of game.
the method of collision is added.
small changes in the method main