limited character movement and fixed character bug