f(map[69]){ // E
		rightVector.x = 255;
	}
	
	if(!map[38] && !map[40] && !map[83] && !map[87]){ // ArrowUp/Down is not pressed
		leftVector.y = 0;
	}
	if(!map[37] && !map[39] && !map[68] && !map[65]){ // ArrowLeft/Right is not pressed
		leftVector.x = 0;
	}
	if(!map[81] && !map[69]){ // Q/E is not pressed
		rightVector.x = 0;
	}
	sendFlag = true;
}


function setupCanvas() {
	
	canvas = document.createElement( 'canvas' );
	c = canvas.getContext( '2d' );
	container = document.createElement( 'div' );
	contain