made makefile general, implemented polar coordinates for movement