public void update(){
		mouse();
		keys();
		
		//VALID LOGIC
		tileValid = true;
		switch(selection){
			case 0:
				if(!checkStartEndBounds(tileX, tileY)) tileValid = false;
				break;
			case 1:
				if(getTile(tileX, tileY).equals(Tile.floorTile) || !checkTilePos(tileX, tileY)) tileValid = false;
				break;
			case 2:
				if(getTile(tileX, tileY).equals(Tile.wallTile) || !checkTilePos(tileX, tileY)) tileValid = false;
				break;
			case 3:
				if(!getTile(tileX, tileY).equals(Tile.floorTile) || checkTrapLocation(tileX, tileY)) tileValid = false;
				break;
			case 4:
				if(getTile(tileX, tileY).equals(Tile.doorTileLR) || getTile(tileX, tileY).equals(Tile.doorTileTD) || !getTile(tileX, tileY).equals(Tile.floorTile) || getDoorPos() == 0) tileValid = false;
				break;
			case 5:
				if(!getTile(tileX, tileY).equals(Tile.floorTile) || !checkSpawnerLocation(tileX, tileY)) tileValid = false;
				break;
			default:
				break;
		}
		
		if(!checkStartEndBounds(tileX, tileY)) tileValid = false;
		checkDoors();
		
		//THIS SMOOTHLY INTERPOLATES BETWEEN TWO POINTS USING THE LERP METHOD.
		xScroll = (int) lerp(xScroll, xa, cubic_scerve3(0.25f));
		yScroll = (int) lerp(yScroll, ya, cubic_scerve3(0.25f));
//		xScroll = (int) lerp(xScroll, xa, 0.25f);
//		yScroll = (int) lerp(yScroll, ya, 0.25f);
				
	}