Write utility for iterating maybes
Split up movement-module into three parts