only thing still not working: collision checking of foods (game crashes when touching food) code is mostly equal to previous version, minor improvements had to be made to ensure functionality