Added bounds checking + wall collision detection