All functions made except isGameOver()