private void calculatePosition(){
		nx = Math.cos(getRadians());
		ny = Math.sin(getRadians());
		
		x+=speed*nx;
		y+=speed*ny;
		
		if(x>MainWindow.WIDTH) x = -sprite.getWidth();
		if(y>MainWindow.HEIGHT) y = -sprite.getHeight();
		
		if(x+sprite.getWidth()<0) x = MainWindow.WIDTH;
		if(y+sprite.getHeight()<0) y = MainWindow.HEIGHT;
	}