public boolean collision(int x, int y) {
	    if ((player.getX() + x) < 0 
	        || (player.getX() + x) >= tilemap.width 
	        || (player.getY() + y) < 0 
	        || (player.getY() + y) >= tilemap.height) {
	        return true;
	    }
	    
	    if (tilemap.tiles[player.getY() + y][player.getX() + x] == 0) {
	        return true;
	    } else {
	        return false;
	    }
	}