Victory and game over conditions added. Cleaning up.