copy and pasted Hackpad's guiding code onto battleships_spec