Game over func added but not tested.