Many changes.

Small refactors here and there, input functions moved to separate file. Still needs major cleanup. Beginning of smooth player movement.

Cleanup!