Update Battleship.java

ans = i + 1 otherwise it would be number of index instead of actual value