Refactored Laser.java by removing unnecessary code.