added win condition and screen boundries calculations
also some game over conditions