added level, movement and collision handling