private boolean willCollide(int nextPlayerPositionX, int nextPlayerPositionY, int playerWidth){
	Iterable<Obstacle> brickEnemies = theModel.getBrickEnemies();
	int nextPlayerXWidth = nextPlayerPositionX + BRICK_SIZE;
	for (Obstacle obstacle : brickEnemies){
	    int nextObstacleXWidth = obstacle.getPositionX() + BRICK_SIZE;
	    if (!(nextPlayerXWidth < obstacle.getPositionX() && !(nextPlayerPositionX > nextObstacleXWidth))) { //Ignores obstacle that are behind or ahead of the nextX position {
		if (obstacle.intersect(nextPlayerPositionX, nextPlayerPositionY, playerWidth) ) {
		    currentIntersectedObstacleType = obstacle.getObstacleType();
		    return true;
		}
	    }
	}
	currentIntersectedObstacleType = null;
	return false;
    }