Qt implementation of 2048