Battleship game project refactoring