Add 'use strict' pragma, combine variable statements, trim trailing spaces, add radix parameter to parseInt, fix bug where k moved the player north west instead of y, add comments