@Override
		public void actionPerformed(ActionEvent e) {
			
			if(pressed && !spacePressed) {
				
				if(createMissile == null) {
					createMissile = new Timer(20, new ActionListener() {

						@Override
						public void actionPerformed(ActionEvent e) {
							if(missile1.getEntityCount() == 0) {
								missile1.addEntity(new Entity(Entity.PLAYER_PROJECTILE, missile1.getMaxDimension()));
								missile1.getEntity(0).setX(player.getEntity(0).getX()+24);
								missile1.getEntity(0).setY(player.getEntity(0).getY()+8);
								missile1.getEntity(0).setVerVelocity(-0.5f);
								missile1.getEntity(0).setHitBoxManager(hitBoxManager);
							}
						}
						
					});
					createMissile.setRepeats(true);
				}
				
				spacePressed = true;
				createMissile.start();
			}
			
			else if(!pressed) {
				spacePressed = false;
				createMissile.stop();
			}
			
			
			
		}