Avoid a bug
Fixed empty loop conditions
Made touching mouse not fire when mouse outside of player
Added attribute of