Added code to handle invalid coordinate input when firing