added new functions to battleships