@Override
	public void move() {
		if(!isOnScreen)
			return;
		if(dx > 0) {
			x = x + (speed * Math.cos(direction));
			y = y + (speed * Math.sin(direction));
		}
		else if (dx == 0){
			if(dy > 0)
				y += speed;
			else
				y -= speed;
		}
		
		if(dx < 0) {
			x = x - (speed * Math.cos(direction));
			y = y - (speed * Math.sin(direction));
		}
		
		if(x < 1 - width || x > SpaceWarrior.WIDTH || y < 1 - height || y > SpaceWarrior.HEIGHT) {
			isOnScreen = false;
		}
	}