grid player movement code

semi-broken fix asap