private void calculateTileOccupation() {
        if (Point2D.distance(tileX, tileY, path.peek().getX(), path.peek().getY()) < 0.9 && path.peek().getEnemy() == null) {
            path.peek().setEnemy(this);
        }
        if (Point2D.distance(tileX, tileY, previousTile.getX(), previousTile.getY()) > 0.9 && previousTile.getEnemy() == this) {
            previousTile.setEnemy(null);
        }
    }