Refactored code, added mouse listener for fire.