fixed warnings in main.hs and added check for "dev" flag in the executable section of battleships.cabal
fixed rendering bug introduced while fixing the warnings