fix buttons and image preloading
split game logic, add download php