Fix most bugs; makes game runnable.