fixed some bugs and added random move AI to 2048