Function requested by Lukasz + minor changes

@ Lukasz: I'm not sure what do you need the function for, but instead of
making a brand new one, I changed testShot (in shot.c) so that it
returns the value you asked for. It returns -1 in case the shot is made
by the player, or in case the shot doesn't hit anything before going out
of the map :)