Gui based Battleship game in java