fully working battleships player (although bad at it)