fixed bug in battleships that did not check user input correctly