work on the push stack function

Signed-off-by: Alexander Skjolden <alex@plastboks.net>