public void moveEntityRight() {
        for (Entity entity : entitys) {
            boolean blocked = false;
            for (Entity platform : platforms) {
                if (platform.entityType == EntityType.Solid) {
                    if (platform.intersects(new Square(entity.getX() + 6 , entity.getY(), entity.getWidth(), entity.getHeight()))) {
                        entity.setX(platform.getX() - entity.getWidth());
                        blocked=true;
                        break;
                    }
                }
            }

            if(!blocked){
                entity.moveRight();
            }
        }
    }