Fixed a Null pointer exception in movement and unit selection.