Battleship Ai written for pason coding contest 2011