added messaging system and combined inputmovement with movement