Removed some unnecessary functions
Put tile position calulation into a new function, set offset to 40