Cleaned up skeleton code and implemented really basic game in javascript