implemented saving game