Tested moving with collision. More sophisticated algorithm can be implemented though