Given a direction and a current position, returns the next front position.
x tile position.
y tile position.
the direction that's going towards.
if true, returns null on diagonal input. Otherwise, returns input as is.
the front position.
Given a direction and a current position, returns the next front position.