Ship click detection works. Cleaned up code a bit.