public void update(float delta) {
		
		
		if (collisionLayer == null) {
			System.out.println("It's fucking null.");
		}
		
		float oldX = getX(), oldY = getY(), tileWidth = getLayer().getTileWidth(), tileHeight = getLayer().getTileHeight(); 
		
		try {
			tileWidth = collisionLayer.getTileWidth();
			tileHeight = collisionLayer.getTileHeight();
		} catch (Exception e) {
			System.out.println("Tile variables not loaded. Check layer loading.");
		}
		
		updateMovement();
		
		boolean collision = false;
		
		collision = collisionLayer.getCell((int) (currentPosition.x / tileWidth), (int) (currentPosition.y / tileHeight)).getTile().getProperties().containsKey("isBlocked");
		
		
		
		if (collision != true) {
			position.set(currentPosition);
			currentSprite.setX(position.x);
			currentSprite.setY(position.y);
			bounds.setX(position.x);
			bounds.setY(position.y);
		} else {
			currentPosition.set(oldX, oldY);
			currentSprite.setX(oldX);
			currentSprite.setY(oldY);
			bounds.setX(oldX);
			bounds.setY(oldY);
		}
		
		
	}